import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    component: () => import('@/layouts/MobileLayout.vue'),
    children: [
      {
        path: '',
        name: 'Dashboard',
        component: () => import('@/views/dashboard/index.vue'),
        meta: { title: '生产监控' }
      },
      {
        path: 'yield',
        name: 'Yield',
        component: () => import('@/views/yield/index.vue'),
        meta: { title: '良率分析' }
      },
      {
        path: 'equipment',
        name: 'Equipment',
        component: () => import('@/views/equipment/index.vue'),
        meta: { title: '设备维护' }
      },
      {
        path: 'data-integration',
        name: 'DataIntegration',
        component: () => import('@/views/data-integration/index.vue'),
        meta: { title: '数据集成' }
      },
      {
        path: 'system',
        name: 'System',
        component: () => import('@/views/system/index.vue'),
        meta: { title: '系统设置' }
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 